import request from '@/utils/request'

// 查询轮播图列表
export function listShow(query) {
  return request({
    url: '/system/show/list',
    method: 'get',
    params: query
  })
}

// 查询轮播图详细
export function getShow(pictureId) {
  return request({
    url: '/system/show/' + pictureId,
    method: 'get'
  })
}

// 新增轮播图
export function addShow(data) {
  return request({
    url: '/system/show',
    method: 'post',
    data: data
  })
}

// 修改轮播图
export function updateShow(data) {
  return request({
    url: '/system/show',
    method: 'put',
    data: data
  })
}

// 删除轮播图
export function delShow(pictureId) {
  return request({
    url: '/system/show/' + pictureId,
    method: 'delete'
  })
}

// 导出轮播图
export function exportShow(query) {
  return request({
    url: '/system/show/export',
    method: 'get',
    params: query
  })
}